import time

from prowo import Device
from prowo import Prowo

p = Prowo('192.168.12.1','Vudo3423', 'host')
fan = Device(p, 'switch006')
#dh = Device(p, 'dht11v21.0')
while True:
    #temp = dh.value()[0]
    #print(temp)
    #break
    #if temp > 20:
    fan.do('on')
    #else:
    time.sleep(5)

    fan.do("off")
    break
